#coding:utf-8
import os
from flask_uploads import UploadSet, configure_uploads
basedir = os.path.abspath(os.path.dirname(__file__)).rsplit('/',2)[0]

class Config:
    SECRET_KEY = 'z0ne'     # app安全秘钥，用于生成csrf_token

    SQLALCHEMY_DATABASE_URI = 'mysql://taskG:taskG123@127.0.0.1/taskG'    # 数据库参数配置qweasd123
    SQLALCHEMY_COMMIT_ON_TEARDOWN = True
    SQLALCHEMY_TRACK_MODIFICATIONS = True

    UPLOADED_FILES_DEST = basedir + '/' + 'uploadFile'  # 上传文件的存储目录
    DOCUMENT_FILES_DEST = u'Docs'

    # 当前环境的配置初始化
    @staticmethod
    def init_app(app):
        pass
